#ifndef KNXENVAGENT_H
#define KNXENVAGENT_H

#include <QObject>
#include "knxcontroller.h"

// for handel some env msg, like cid callback , error info...etc

class KnxEnvAgent : public QObject
{
    Q_OBJECT
public:
    static quint16 freePort;
    static KnxEnvAgent *getSingleObj();
    static bool getFreePort(quint16 *portCnt,quint16 *portData);
    static void searchPort(quint16 *port);
    quint16 getCurrentPortNum();
signals:
    
public slots:
    
private:
    explicit KnxEnvAgent(QObject *parent = 0);


};

#endif // KNXENVAGENT_H
